<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>静态资源</title>
<!--    springboot框架会自动去static下面找静态资源文件："/" 会映射到 static目录下面-->
    <script type="text/javascript" th:src="@{/js/jquery-1.7.2.js}"></script>
<!--    <script type="text/javascript" src="/js/jquery-1.7.2.js"></script>-->
    <script type="text/javascript">
        $(function () {
            alert("99999999999");
        });
    </script>
</head>
<body>
<img src="/img/1627775762435.jpeg"/><br/>
<img th:src="@{img/1627775762435.jpeg}"/>
</body>
</html>